fixing link in index and div toggling in main page