apply design
minor changes on php