Removes all UI related codes