You've posted a bunch of project requirements but no coherent question. You need to tell us what specific problem you are having with your current code, else we'll not be able to help you.