Mainly clean up commit; fixed some function of the select file type buttons