added some floor and templated main