removed unneeded imports, centered text based on res