added menu logic
added scroll tracking logic