Finally got the basic ui sorted out.