location layout and java class changed