Fixing ajax functionality, added link on main display page