rearranged parts of homepage layout and added rs.close to connection
classes