Optimize

Make operation within the main page without page refreshing.