Fix some display error
Separate javascript and php page