think I have implemented layout but it needs more debugging