fixed overflow issues and building sub page