Cleared resize methods and updated the size at the end of show method.