manage page displaying in wrong input