Added flexibility of keydetail-ui so it works better with tiling windowmanagment