Fixed bugs and added constant subui